package com.example.haha_.ui_demo;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.haha_.ui_demo.recyclerview.RecyclerActivity;


public class MainActivity extends AppCompatActivity {


    private Button login,register;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.start);
        initview();
    }

    private void initview()
    {
        login=findViewById(R.id.login);
        register=findViewById(R.id.register);

        login.setOnClickListener((View v) ->{
            Intent intent = new Intent(MainActivity.this, RecyclerActivity.class);
            startActivity(intent);
        });
        register.setOnClickListener((View v) ->{
            Intent intent = new Intent(MainActivity.this, RegisterActivity.class);
            startActivity(intent);
        });

    }



}
